package com.oocl.im.gui;
import java.awt.BorderLayout;

import javax.swing.JFrame;
import javax.swing.JLabel;

public class InforFrameClose extends JFrame {
	private JLabel errorLabel;

	public InforFrameClose(String error) {
		this.setSize(200, 100);
		this.setResizable(false);
		this.setLocationRelativeTo(null);
		init(error);
		this.setVisible(true);
		this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
	}

	public void init(String error) {
		this.setLayout(new BorderLayout());
		errorLabel = new JLabel(error);
		this.add(errorLabel, BorderLayout.CENTER);

	}

	public static void main(String[] args) {
		new InfoFrame("ç”¨æˆ·å·²ç»�ç™»å½•");
	}
}